package com.imdroid.notification;

import com.imdroid.modal.Device;

public class NTeamConfirmAdd extends Notification {
	/**
	 * The sender
	 */
	public Device member;
	/**
	 * the team id
	 */
	public int teamId;
	/**
	 * the team id
	 */
	public int status;

	/**
	 * Constructor with the team
	 * 
	 * @param member
	 *            the member to confirm
	 * @param teamId
	 *            the team of confirmation
	 */
	public NTeamConfirmAdd(Device member, int teamId, int status) {
		this.member = member;
		this.teamId = teamId;
		this.status = status;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.imdroid.notification.Notification#getHeader()
	 */
	protected int getHeader() {
		return Notification.NOTIFICATION_TeamConfirmAdd;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.imdroid.notification.Notification#getBody()
	 */
	protected String getBody() {
		return member.getUser_id() + ":" + member.getUser_name() + ":" + teamId
				+ ":" + status;
	}
}
